package cn.stylefeng.guns.modular.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 权限表，每个权限代表了系统中的一个菜单、按钮、URL请求
 * @author allen
 * @date 2021/4/12 10:07
 * @version 1.0
 */


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "auth_priority")
public class AuthPriorityEntity implements Serializable {
    /**
     * 主键，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 权限编号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 权限对应的请求URL
     */
    @TableField(value = "url")
    private String url;

    /**
     * 权限的说明备注
     */
    @TableField(value = "priority_comment")
    private String priorityComment;

    /**
     * 权限类型，1：菜单，2：其他
     */
    @TableField(value = "priority_type")
    private Integer priorityType;

    /**
     * 父权限的主键
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 权限的创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 权限的修改时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

//    private static final long serialVersionUID = 1L;
//
//    public static final String COL_ID = "id";
//
//    public static final String COL_CODE = "code";
//
//    public static final String COL_URL = "url";
//
//    public static final String COL_PRIORITY_COMMENT = "priority_comment";
//
//    public static final String COL_PRIORITY_TYPE = "priority_type";
//
//    public static final String COL_PARENT_ID = "parent_id";
//
//    public static final String COL_GMT_CREATE = "gmt_create";
//
//    public static final String COL_GMT_MODIFIED = "gmt_modified";
}